from django.db import models


class HouseInfo(models.Model):
    city = models.CharField(max_length=32)
    link =  models.CharField(max_length=255)
    neighborhood_name =  models.CharField(max_length=100)
    area =  models.CharField(max_length=50)
    house_type =  models.CharField(max_length=50)
    floor =  models.CharField(max_length=50)
    building_area =  models.CharField(max_length=50)
    decoration =  models.CharField(max_length=50)
    orientation =  models.CharField(max_length=50)
    building_type =  models.CharField(max_length=50)
    times =  models.CharField(max_length=50)
    title =  models.CharField(max_length=255)
    age = models.IntegerField()
    t_price =  models.CharField(max_length=50)
    ave_price =  models.CharField(max_length=50)
    tag =  models.CharField(max_length=50)
    latitude =  models.CharField(max_length=50)
    longitude =  models.CharField(max_length=50)
    property_right = models.CharField(max_length=20)
    di_ya =  models.CharField(max_length=20)

    # Create your models here.

class UserInfo(models.Model):
    name = models.CharField(max_length=32)
    passwd = models.CharField(max_length=64)
    age = models.IntegerField()


class Province(models.Model):
    provinces = models.CharField(max_length=20)
    city = models.CharField(max_length=20)
    ershous = models.CharField(max_length=50)
    new  = models.CharField(max_length=50)
    zufang = models.CharField(max_length=50)


class HouseFeature(models.Model):
    mai_dian = models.CharField(max_length=50)
    jie_shao = models.CharField(max_length=50)
    hu_xing = models.CharField(max_length=50)
    jiao_tong = models.CharField(max_length=50)





















